// 实现bind
Function.prototype._bind = function(thisArg,...args1){
    let self = this
    return function(...args2){
        return self.apply(thisArg, [...args1,...args2])
    }
}

function getName(msg1,msg2){
    console.log('name=', this.name,msg1,msg2)
    console.log(this)
}

let p = getName._bind({name:'张三'},1)
let p2 = getName.bind({name:'李四'},1)
p(2)
p2(2)